define(['vue'],function(Vue){
	return Vue.extend({
		name: 'headerBar',
		props: ['title'],
		template: `
		<div>
			<button @click="goBack">返回</button>
			<span style="color:red">{{title}}</span>
		</div>
		`,
		methods:{
			goBack(){
				this.$emit('goBack')
			}
		}
	})
})